package task

import (
	"push_course/src/entity"
	"time"
)

func WordTask() *entity.Task {
	return &entity.Task{
		Comment: `
- 单词推送触发器
	- 6.30  推送早上单词
	- 12.50 推送中午单词
	- 22.30 推送晚上单词`,
		Callback: func(t time.Time,now string) {
			switch now {
			case "6:30:0":
				pusher.PushRandomWord("早上单词", 5)
			case "12:50:0":
				pusher.PushRandomWord("中午单词", 10)
			case "22:30:0":
				pusher.PushRandomWord("睡前单词", 5)
			}
		},
	}
}
